Skip to content

[pull] master from ruby:master#166

Merged
pull[bot] merged 1 commit intosysfce2:masterfrom
ruby:master
Mar 23, 2026
Merged

[pull] master from ruby:master#166
pull[bot] merged 1 commit intosysfce2:masterfrom
ruby:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Mar 23, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

When a C file references another source file via `/* in file.c */`, the
parser read it with bare `File.read` which uses
`Encoding.default_external`. On systems where this is US-ASCII (e.g.
Debian CI), non-ASCII bytes in the source file cause `ArgumentError:
invalid byte sequence in US-ASCII` in String#scan.

Use `RDoc::Encoding.read_file` instead, which reads in binary mode and
properly handles encoding detection and transcoding.

This was triggered by Ruby commit
[`a2531ba293`](ruby/ruby@a2531ba293) which
added UTF-8 right arrows (→) in comments in `class.c`, which is
referenced from `object.c` via `/* in class.c */`.
@pull pull bot locked and limited conversation to collaborators Mar 23, 2026
@pull pull bot added the ⤵️ pull label Mar 23, 2026
@pull pull bot merged commit 911b122 into sysfce2:master Mar 23, 2026
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant